package lab02.test34;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by JAVA on 2017/12/7.
 */
public class Test {
    public static void main(String[] args) {
        Scanner sca=new Scanner(System.in);
        List<String> list=new ArrayList<String>();
        list.add("apple");
        list.add("grape");
        list.add("banana");
        list.add("pear");
        Object[] s=list.toArray();
        System.out.println("最小数是"+s[0]);
        System.out.println("最大数是"+s[s.length-1]);
        for (Object o:s){
            System.out.println(o);
        }
    }

}
